package _18MediatorDesignPattern;

public abstract class Person {
    private String name;
    private int condition;
    private Mediotor mediotor;

    public Person(String name, int condition, Mediotor mediotor) {
        this.name = name;
        this.condition = condition;
        this.mediotor = mediotor;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCondition() {
        return condition;
    }

    public void setCondition(int condition) {
        this.condition = condition;
    }

    public Mediotor getMediotor() {
        return mediotor;
    }

    public void setMediotor(Mediotor mediotor) {
        this.mediotor = mediotor;
    }
    public abstract void getPartner(Person person);
}
